package com.lmx.repoDomain.tmodel.unpersis;

import io.katharsis.resource.annotations.JsonApiIncludeByDefault;
import io.katharsis.resource.annotations.JsonApiResource;
import io.katharsis.resource.annotations.JsonApiToMany;
import io.katharsis.resource.annotations.JsonApiToOne;

import java.util.List;

import com.lmx.repoDomain.tmodel.BaseEntity;
import com.lmx.repoDomain.tmodel.Customer;
import com.lmx.repoDomain.tmodel.CustomerDrugProject;

/**
 * 用药执行计划记录
 *
 * @author ytche
 * @date 2017年7月27日
 *
 */
@JsonApiResource(type = "drugPlanExeRecord")
public class DrugPlanExeRecord extends BaseEntity {

	private static final long serialVersionUID = 1L;
	private Integer type; // 0按照月份统计1按照周统计
	private Customer customer;
	private String statisticTime;
	private CustomerDrugProject project;
	private List<DrugPlanExeDayRecord> dayRecords;

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@JsonApiToOne
	@JsonApiIncludeByDefault
	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public String getStatisticTime() {
		return statisticTime;
	}

	public void setStatisticTime(String statisticTime) {
		this.statisticTime = statisticTime;
	}

	@JsonApiToMany
	@JsonApiIncludeByDefault
	public List<DrugPlanExeDayRecord> getDayRecords() {
		return dayRecords;
	}

	public void setDayRecords(List<DrugPlanExeDayRecord> dayRecords) {
		this.dayRecords = dayRecords;
	}

	@JsonApiToOne
	@JsonApiIncludeByDefault
	public CustomerDrugProject getProject() {
		return project;
	}

	public void setProject(CustomerDrugProject project) {
		this.project = project;
	}
}
